package request

// CustomerCreateRequest 创建客户请求
type CustomerCreateRequest struct {
	Name    string `json:"name" binding:"required"`
	Contact string `json:"contact"`
	Phone   string `json:"phone"`
	Email   string `json:"email" binding:"omitempty,email"`
	Address string `json:"address"`
	Remark  string `json:"remark"`
}

// CustomerUpdateRequest 更新客户请求
type CustomerUpdateRequest struct {
	ID      uint   `json:"id" binding:"required"`
	Name    string `json:"name" binding:"required"`
	Contact string `json:"contact"`
	Phone   string `json:"phone"`
	Email   string `json:"email" binding:"omitempty,email"`
	Address string `json:"address"`
	Remark  string `json:"remark"`
}

// CustomerListRequest 客户列表请求
type CustomerListRequest struct {
	PageRequest
	Keyword string `form:"keyword"`
}
